<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="WEB-INF/template.xhtml">
    <ui:param name="page_title" value="Logout"/>
    <h:form id="formLogout" rendered="#{sessionScope.account != null}">
        <h:outputText value="You are logged in."/>
        <h:commandButton value="Logout" id="btnSubmit" action="#{LogoutControllerBean.logout()}"/>
    </h:form>
    <h:outputText value="You are logged out." rendered="#{sessionScope.account == null}"/>
</ui:composition>